| IDENTITY | TEST | RESULT | RESULT | UNIT | RANGE |
| ]+tgroupname+[ | ] firstline=.f. ELSE tstr=tstr+[] ENDIF tstr=tstr+[ | ]+TESTNAME+[ | ]+IIF(EMPTY(result),' ',ALLTRIM(result))+[ | ]+IIF(EMPTY(unit),' ',ALLTRIM(unit))+[ | ]+IIF(EMPTY(range),' ',ALLTRIM(range))+[ |

<%=allt(allt(xcompany.address1)+[ ]+allt(xcompany.address2))%>
ENTRY TOKEN <%=maincursor.transid%>
<%if m_printdoc='token'%>| Entry: | <%=transform(maincursor.dtime)%> <%=icase(ptcursor.gender='m','GENDER: MALE',ptcursor.gender='F','GENDER: FEMALE','')%> |
| Speciman: | <%=allt(maincursor.speciman)%> |
| Patient: | <%=ptcursor.name%> <%=iif(totaldays<1 or totalyears>2,'','DAYS: '+transform(totaldays))%> <%=iif(totalmonths<1 or totalyears>2,'','MONTHS: '+transform(totalmonths))%> <%=iif(totalyears<1,'','YEARS: '+transform(totalyears))%> <%=iif(empty(ptcursor.weight),'','WEIGHT: '+transform(ptcursor.weight))%> |
| Ref. By: | <%=maincursor.doctor%> |
| Opinion | <%=allt(maincursor.solution)%> |